import { put, takeEvery, delay } from 'redux-saga/effects'
import { INCREMENT_SYNC, increment} from "../actions/count.action"


function * increment_sync(action) {
    console.log(action)
    yield delay(2000)
    yield put(increment(action.payload))
}


export default function * () {
    yield takeEvery(INCREMENT_SYNC, increment_sync)
}



